package o;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import com.huawei.hmf.orb.aidl.communicate.DataBuffer;
import o.ffu.a;

public interface ffw extends IInterface {

    public static abstract class e extends Binder implements ffw {

        static class d implements ffw {
            private IBinder ॱ;

            d(IBinder iBinder) {
                this.ॱ = iBinder;
            }

            public IBinder asBinder() {
                return this.ॱ;
            }

            public void ˋ(DataBuffer dataBuffer) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.hmf.orb.aidl.IAIDLInvoke");
                    if (dataBuffer != null) {
                        obtain.writeInt(1);
                        dataBuffer.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.ॱ.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void ॱ(DataBuffer dataBuffer, ffu o_ffu) throws RemoteException {
                IBinder iBinder = null;
                Parcel obtain = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.hmf.orb.aidl.IAIDLInvoke");
                    if (dataBuffer != null) {
                        obtain.writeInt(1);
                        dataBuffer.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    if (o_ffu != null) {
                        iBinder = o_ffu.asBinder();
                    }
                    obtain.writeStrongBinder(iBinder);
                    this.ॱ.transact(2, obtain, null, 1);
                } finally {
                    obtain.recycle();
                }
            }
        }

        public e() {
            attachInterface(this, "com.huawei.hmf.orb.aidl.IAIDLInvoke");
        }

        public static ffw ˋ(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("com.huawei.hmf.orb.aidl.IAIDLInvoke");
            if (queryLocalInterface == null || !(queryLocalInterface instanceof ffw)) {
                return new d(iBinder);
            }
            return (ffw) queryLocalInterface;
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            DataBuffer dataBuffer = null;
            String str = "com.huawei.hmf.orb.aidl.IAIDLInvoke";
            switch (i) {
                case 1:
                    parcel.enforceInterface(str);
                    if (parcel.readInt() != 0) {
                        dataBuffer = (DataBuffer) DataBuffer.CREATOR.createFromParcel(parcel);
                    }
                    ˋ(dataBuffer);
                    parcel2.writeNoException();
                    return true;
                case 2:
                    parcel.enforceInterface(str);
                    if (parcel.readInt() != 0) {
                        dataBuffer = (DataBuffer) DataBuffer.CREATOR.createFromParcel(parcel);
                    }
                    ॱ(dataBuffer, a.ˋ(parcel.readStrongBinder()));
                    return true;
                case 1598968902:
                    parcel2.writeString(str);
                    return true;
                default:
                    return super.onTransact(i, parcel, parcel2, i2);
            }
        }
    }

    void ˋ(DataBuffer dataBuffer) throws RemoteException;

    void ॱ(DataBuffer dataBuffer, ffu o_ffu) throws RemoteException;
}
